FROM docker.io/centos:latest
MAINTAINER wangChenChen,564697100@qq.com
WORKDIR /javaxh_docker/jdk
ADD jdk-8u221-linux-x64.tar.gz /javaxh_docker/jdk/
WORKDIR /nacos
ADD start.sh /nacos
ADD nacos-server-2.0.3.tar.gz /nacos
ENV JAVA_HOME=/javaxh_docker/jdk/jdk1.8.0_221
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$JAVA_HOME/bin:$PATH
#CMD ["java","-version"]
#CMD ["sh","/nacos/nacos/bin/startup.sh","-m","standalone&&/bin/bash"]
#CMD ["java","-version"]
CMD ["sh","/nacos/start.sh"]
